import Request from '@/utils/request';

/**
 * api
 *
 * @author jizhongbao
 * @date 2022/03/08 14:51
 */
export class NameNumberApi {
  /**
   * 新增
   *
   * @author jizhongbao
   * @date 2022/03/08 14:51
   */
  static add(params) {
    return Request.post('/nameNumber/add', params);
  }

  /**
   * 修改
   *
   * @author jizhongbao
   * @date 2022/03/08 14:51
   */
  static edit(params) {
    return Request.post('/nameNumber/edit', params);
  }

  /**
   * 删除
   *
   * @author jizhongbao
   * @date 2022/03/08 14:51
   */
  static delete(params) {
    return Request.post('/nameNumber/delete', params);
  }

  /**
   * 详情
   *
   * @author jizhongbao
   * @date 2022/03/08 14:51
   */
  static detail(params) {
    return Request.getAndLoadData('/nameNumber/detail', params);
  }
}
